<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" src="<%=basePath %>/login/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/login/scripts/jquery.quickpaginate.js"></script>
<script type="text/javascript">
	$(function(){
		$("#dataTable tbody tr").quickpaginate({ perpage: 10, pager : $("#temp") });
	});
</script>
<style type="text/css">
th {
	color: #375B91;
}
</style>
<div id="content2">
	<div id="box2">
		<div>
			<h3>
				当前位置&nbsp;:&nbsp;灾情数据管理&nbsp;>>&nbsp;历史灾情查询&nbsp;>>&nbsp;工业交通运输业气象灾害统计表
			</h3>
		</div>
		<div id="search_bar2">
			<form action="sumReportsAction!reports_gjIndustry.action"
				method="post" id="myForm">
				<table width="550" border="0" cellpadding="0" cellspacing="3">
					<tr>
						<td width="60">
							灾害类型:
						</td>
						<td width="100">
							<s:select list="dstypes" listKey="dtName" listValue="dtName" value="disType" name="disType" headerKey="0" headerValue="--所有灾害类型--" theme="simple"></s:select>
						</td>
						<td width="40">
							年份:
						</td>
						<td width="100">
							<%--<s:select list="#{'2020':'2020','2019':'2019','2018':'2018','2017':'2017','2016':'2016','2015':'2015','2014':'2014','2013':'2013','2012':'2012','2011':'2011','2010':'2010','2009':'2009','2008':'2008','2007':'2007'}" headerKey="0" headerValue="--所有年份--" value="year" name="year" theme="simple"></s:select>--%>
						<select name="year" class="simple">
							<option value="0">--所有年份--</option>
							<c:forEach begin="1983" end="2020" step="1" var="ii">
								<option <c:if test="${year == ii }">selected="selected"</c:if>>${ii}</option>
							</c:forEach>
						</select>
						</td>
						<td>
							<input type="submit" value="查询" />
						</td>
					</tr>
				</table>
			</form>
		</div>
		<table id="dataTable">
				<thead>
					<tr>
						<th rowspan="2">镇区</th>
						<th colspan="2">工业影响</th>
						<th colspan="5">交通业损失</th>
						<th rowspan="2">受灾次数</th>
					</tr>
					<tr>
						<th>停产工厂数（间）</th>
						<th>设备损失（台）</th>
						<th>飞机航班延误次数</th>
						<th>交通工具损毁数</th>
						<th>汽车火车停运时间（小时)</th>
						<th>运输翻(沉)船只数</th>
						<th>直接经济损失（万元）</th>
					</tr>
				</thead>
				<tbody>
				<c:forEach items="${reportList}" var="report">
					<tr>
						<td class="a-center">
							${report.town }
						</td>
						<td class="a-center">
							${report.tgnumber }
						</td>
						<td class="a-center">
							${report.sblose }
						</td>
						<td class="a-center">
							${report.planedelaynumber}
						</td>
						<td class="a-center">
							${report.fqvehicledestroy}
						</td>
						<td class="a-center">
							${report.ghmorratime}
						</td>
						<td class="a-center">
							${report.sinkboatnumbrt}
						</td>
						<td class="a-center">
							${report.jeconomyloss}
						</td>
						<td class="a-center">
							${report.actTime}
						</td>
					</tr>
				</c:forEach>
				</tbody>
			</table>
			<div id="temp" style="height: 30px;padding-left:500px;"></div>
			<jsp:include page="flash.jsp"></jsp:include>
		</div>
	<br />
</div>
